﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq.Expressions;
using System.Text;

namespace PropertyChangedNotificator.Test
{
    static class TestsExt
    {
        public static void SetChangedAction<T, TValue>(this T model, Expression<Func<T>> property)
            where T : INotifyPropertyChanged
        {

            model.PropertyChanged += (o, e) =>
            {
                Console.WriteLine(e.PropertyName);
            };
        }
    }
}
